<?php
/**
 * App for managing companies
 * 
 * Template for company adding
 * 
 * @category Abovo
 * 
 * @package Abovo_App_Crm
 * 
 * @subpackage Abovo_App_Crm_Companies
 * 
 * @license http://opensource.org/licenses/gpl-license.php GPL
 * 
 * @author Antti Holvikari <anttih@gmail.com>
 */
?>
<h2><?php echo $this->getText('APP_ACTION_ADD') ?></h2>
<div class="yui-ge">
    <div class="yui-u first">
<?php echo $this->form()
                ->setStatus($this->company_form->getStatus())
                ->addFeedback($this->company_form->feedback)
                ->beginFieldset('General information')
                ->addElement($this->company_form->elements['company[name]'])
                ->addElement($this->company_form->elements['company[short]'])
                ->addElement($this->company_form->elements['company[vat]'])
                ->addElement($this->company_form->elements['company[url]'])
                ->addElement($this->company_form->elements['company[adr]'])
                ->addElement($this->company_form->elements['company[postal_code]'])
                ->addElement($this->company_form->elements['company[city]'])
                ->addElement($this->company_form->elements['company[country]'])
                ->addElement($this->company_form->elements['company[descr]'])
                ->addElement($this->company_form->elements['company[tags]'])
                ->endFieldset()
                ->beginFieldset('Shipping information')
                ->addElement($this->company_form->elements['company[ship_adr]'])
                ->addElement($this->company_form->elements['company[ship_postal_code]'])
                ->addElement($this->company_form->elements['company[ship_city]'])
                ->addElement($this->company_form->elements['company[ship_country]'])
                ->endFieldset()
                ->addElement(array(
                    'name' => 'process',
                    'type' => 'submit',
                    'value' => $this->getText('PROCESS_SAVE'),
                    ))
                ->fetch() 
?>
    </div>
    <div class="yui-u"></div>
</div>